<template>
    <div :class="isFirst ? 'titleComponent-wrap-first' : 'titleComponent-wrap'">
       <div class="line"></div>
       <div>{{title}}</div>
    </div>
</template>

<script>
    export default {
        name: "titleComponent",
        props: {
            title: {
                type: String,
                default: () => ''
            },
            isFirst: {
                type: Boolean,
                default: () => false
            },
        }
    }
</script>

<style scoped lang="less">
.titleComponent-wrap-first{
    color: #333;
    font-size: 18px;
    font-weight: bold;
}
.titleComponent-wrap {
    overflow: hidden;
    box-sizing: border-box;
    height: 20px;
    line-height: 20px;
    font-size: 19px;
    font-weight: bolder;
    display: flex;
    .line{
        width: 4px;
        height: 20px;
        background: #0b82ff;
        border-radius: 8px;
        margin-right: 8px;
    }
}
</style>
